#!/usr/bin/env bash
cd /root/IdeaProjects/jvm-deep-learn
mvn package
cd target/classes
source /etc/profile
JAVA_OPTS="-Xms20M -Xmx20M -Xmn10M -XX:+PrintGCDetails -XX:SurvivorRatio=8 -XX:-PromotionFailureALot -XX:+UseSerialGC"
java $JAVA_OPTS ch03_gc.P6_testHandlePromotion